<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {
            name:'yunyi',
            getName:function(...args){
                console.log(args);
                console.log(this.name);
            }
        }
let obj2 = {
    name:'wow'
}
obj.getName()
obj.getName.call(obj2)
obj.getName.apply(obj2)

let func = obj.getName
// 未来执行
func.bind(obj2)()
    </script>
</body>
</html>